package com.dcy.znoa.domain.publiz;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.dcy.znoa.domain.Oper;
import com.dcy.znoa.domain.sys.StoreFile;
import com.dcy.znoa.domain.sys.UrlList;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author pengyu  新闻表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("news")
public class News{

    @TableId(type = IdType.AUTO, value = "news_id")
    Long newsId;

    @TableField
    String newsTitle;//news_title

    @TableField
    String titlePic;//title_pic

    @TableField
    String message;//

    @TableField
    String messagePic;//

    @TableField
    Integer times;

    @TableField("create_oper_id")
    Long createOperId;

    @TableField("create_time")
    Date createTime;

    @TableField("update_oper_id")
    Long updateOperId;

    @TableField("update_time")
    Date updateTime;

    @TableField("valid_flag")
    Integer validFlag;

    @TableField(value = "comp_id")
    Long compId;

    @TableField(exist = false)
    String compName;

    @TableField(exist = false)
    List<StoreFile> storeFileList;//一个新闻对应多个附件


}
